package top.withwings.bonus.common.pojo;

import org.springframework.security.core.GrantedAuthority;

public class IndexedGrantedAuthority implements GrantedAuthority {

    private int index;
    private String authority;


    @Override
    public String getAuthority() {
        return authority;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "IndexedGrantedAuthority{" +
                "index=" + index +
                ", authority='" + authority + '\'' +
                '}';
    }
}
